<app:aside-block class='aside-block-highlighted' heading='Ruin' visibility-model='Room.asidePanels.view'>
<div class='object-properties-id'>
ID: {{Room.selectedObject._id}}
</div>
<div ng-if='Room.selectedObject.user'>
<label>Owner:</label>
<a ng-href="#!{{ 'top.profile' | routeSegmentUrlStateless:{username: Room.users[Room.selectedObject.user].username} }}" ng-if='!Room.isSelectedObjectNPC()' title='View user profile'>
<img app-badge-src='Room.users[Room.selectedObject.user].badge'>
{{Room.users[Room.selectedObject.user].username}}
</a>
<span ng-if='Room.isSelectedObjectNPC()'>
{{Room.users[Room.selectedObject.user].username}}
</span>
</div>
<div>
<label>Position:</label>
{{Room.selectedObject.x}}, {{Room.selectedObject.y}}
</div>
<div>
<label>Structure:</label>
{{Room.selectedObject.structure.type}}
</div>
<div ng-if='Room.gameTime'>
<label>Decay in:</label>
{{Room.selectedObject.decayTime - Room.gameTime}}
<div ng-if='Room.gameTime' title='{{Room.selectedObject.deathTime}}'>
<label>Destroy time:</label>
{{Room.gameTime - Room.selectedObject.destroyTime}} ticks ago
</div>
<div class='body'>
<label class='body-header'>
Store
<div class='pull-right'>
{{Room.calcResources(Room.selectedObject) | round}}
</div>
</label>
<div ng-if='!Room.calcResources(Room.selectedObject)'>Empty</div>
<table class='carry-resource'>
<tr ng-if='amount &gt; 0' ng-repeat='(resourceType, amount) in Room.selectedObject.store'>
<td>{{amount | number}}&nbsp;&times;&nbsp;</td>
<td>
<img class='resource-type' ng-src='https://s3.amazonaws.com/static.screeps.com/upload/mineral-icons/{{resourceType}}.png' uib-tooltip='{{Room.resourceTypeNames[resourceType]}}'>
</td>
</tr>
</table>
</div>
</div>
<ng-include src="'room-object-effects'"></ng-include>
</app:aside-block>
